import { request, requestWithParams } from "../http/request";

export const requestRegister = (data: any) => {
  return request("/register", "post", data);
};
export const requestLogin = (data: any) => {
  return request("/login", "post", data);
};

export const getUserById = (userId: string) => {
  return requestWithParams("/users/{id}", { id: userId });
};
